package com.my.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my.entity.WecomConfig;
import com.my.request.WecomConfigChangeReq;
import com.my.request.WecomConfigQueryReq;
import com.my.request.WecomConfigUpdateReq;
import com.my.response.WecomConfigDetailResponse;
import com.my.response.WecomConfigResponse;
import com.my.result.PageResult;

/**
 * @author sjx
 * @date 2025/2/13 9:41
 */
public interface WecomConfigService extends IService<WecomConfig> {

    /**
     * 分页获取企业微信参数配置
     * @param query
     * @return
     */
    PageResult<WecomConfigResponse> getPage(WecomConfigQueryReq query);

    /**
     * 根据id获取参数详情
     * @param id
     * @return
     */
    WecomConfigDetailResponse getInfo(Long id);

    /**
     * 修改参数配置
     * @param request
     */
    void updateInfo(WecomConfigUpdateReq request);

    /**
     * 设置参数状态
     * @param request
     */
    void changeStatus(WecomConfigChangeReq request);

}
